package com.wn.sk.product.core.mapper;

import com.wn.sk.product.core.entity.PromotionSeckill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 秒杀活动表 Mapper 接口
 * </p>
 *
 * @author yellow docker
 * @since 2022-09-02
 */
public interface PromotionSeckillMapper extends BaseMapper<PromotionSeckill> {

    //mysql中的库存
    @Update("update pms_promotion_seckill set ps_count = ps_count-1 where id = #{value}")
    int updateStore(Integer promotionId);
}
